<include file="Public/header" />
<include file="Public/menu" />

<!-- 内容页 -->
<div class="content-wrapper">
    <!-- 面包屑 -->
    <section class="content-header">
        <h1>
            平台
            <small>物流公司管理</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 平台配置</a></li>
            <li class="active">添加物流公司信息</li>
        </ol>
    </section>

    <!-- 内容 -->
    <section class="content"><div class="row"><div class="col-md-12">
        <div class="box box-info">
            <div class="box-header with-border">
                <h3 class="box-title">添加物流公司信息</h3>

                <div class="box-tools">

                    <div class="btn-group pull-right" style="margin-right: 10px">
                        <a href="{:U('/manage/Dly/index')}" class="btn btn-sm btn-default"><i class="fa fa-list"></i>&nbsp店铺物流信息列表</a>
                    </div>
                </div>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form action="{:U('/manage/Dly/dlyInfoAdd')}" method="post" id="dlyform" accept-charset="UTF-8" class="form-horizontal" pjax-container="">

                <input type="hidden" name="corp_id" value="{$info['corp_id']}">
                <div class="box-body">
                    <div class="form-group 1">
                        <label class="col-sm-2 control-label">物流公司名称</label>
                        <div class="col-sm-6">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="fa fa-pencil"></i></span>
                                <input type="test" name="name" value="{$info['name']}" class="form-control" placeholder="物流公司名称">
                            </div>
                        </div>
                    </div>
                    <div class="form-group 1">
                        <label class="col-sm-2 control-label">物流公司代码</label>
                        <div class="col-sm-6">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="fa fa-pencil"></i></span>
                                <input type="text" name="corp_code" value="{$info['corp_code']}" class="form-control" placeholder="物流公司代码">
                            </div>
                        </div>
                    </div>
                    <div class="form-group 1">
                        <label class="col-sm-2 control-label">物流公司网址</label>
                        <div class="col-sm-6">
                            <div class="input-group">
                                <span class="input-group-addon"><i class="fa fa-pencil"></i></span>
                                <input type="text" name="website" value="{$info['website']}" class="form-control" placeholder="网址">
                            </div>
                        </div>
                    </div>


                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    <div class="col-sm-2">

                    </div>
                    <div class="col-sm-6">

                        <div class="btn-group pull-right">
                            <input type="reset" class="btn btn-warning" value="重置">
                        </div>

                        <div class="btn-group pull-left">
                            <button type="submit" class="btn btn-info pull-right">提交</button>
                        </div>


                    </div>

                </div>
                <!-- /.box-footer -->
            </form>
        </div>

    </div></div>

    </section>
</div>
<!-- 底部 -->
<include file="Public/common_footer" />


<script>
    $(function () {
        $("#dlyform").validate({
            rules: {
                name:{
                    required: true,
                    rangelength: [2, 50]
                }

            },
            messages:{
                name: {
                    required: "请输入物流公司名称",
                    rangelength: "物流公司名称长度在2到50个字符之间"
                }

            },
            submitHandler: function(form){
                form.submit();   //提交表单
            }
        });
    })
</script>
